#ifndef WXGENERATEDIALOG_H
#define WXGENERATEDIALOG_H

#include "wxPoints.h"
#include <wx/wx.h>

class wxGenerateDialog : public wxDialog
{
public:
    wxGenerateDialog(wxWindow *parent);

    ~wxGenerateDialog();

    double getMinX() const;
    double getMaxX() const;
    double getMinY() const;
    double getMaxY() const;
    double getMinZ() const;
    double getMaxZ() const;
    double getAmount() const;

private:
    void onUpdateOkButton(wxUpdateUIEvent& event);
    virtual bool TransferDataFromWindow() override;
    void populate(wxBoxSizer *sizer, wxTextCtrl *box, const wxString labelValue, int xSize);
    bool allFieldsArePopulated() const;
    bool allFieldsAreNumbers() const;

    double minX, maxX, minY, maxY, minZ, maxZ, amount;

    wxTextCtrl *maxXBox;
    wxTextCtrl *minXBox;

    wxTextCtrl *minYBox;
    wxTextCtrl *maxYBox;

    wxTextCtrl *minZBox;
    wxTextCtrl *maxZBox;

    wxTextCtrl *amountBox;

    DECLARE_EVENT_TABLE()
};

#endif // WXGENERATEDIALOG_H
